<template>
	<view
		:style="themeColor"
		style="overflow-x: hidden;"
	>
		<view class="page">
			<view
				class="flex benben-position-layout flex flex-wrap align-center newProduct_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }"
			>
				<view class='flex flex-wrap align-center justify-between flex-sub newProduct_fd0_0'>
					<view
						class='flex flex-wrap align-center newProduct_fd0_0_c0'
						@tap.stop="handleJumpDiy"
						data-type="back"
						data-url="1"
					>
						<text class='fu-iconfont2  newProduct_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text
							class='newProduct_fd0_0_c1_c0'
							style="font-family: Alimama DongFangDaKai, Alimama DongFangDaKai;"
						>新品预售</text>
					</view>
					<view class='flex flex-wrap align-center justify-end newProduct_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout newProduct_flex_1">
				<view
					class='flex flex-direction flex-wrap align-stretch newProduct_fd1_0'
					style="min-height: 60vh;"
				>
					<view
						class='flex flex-wrap align-center newProduct_fd1_0_c0 animation-slide-right'
						v-for="(item,i) in goodsList"
						:key="i"
						:style="'animation-duration:'+item.animationTime+'s;'"
						@tap.stop="handleJumpDiy"
						data-type="navigateTo"
						:data-url="`/pages/grzx/merchanDisedetails/merchanDisedetails?id=`+item.id"
					>
						<view class="newProduct_fd1_0_c0_c0">
							<u-image
								width="100%"
								height="100%"
								border-radius="8rpx"
								lazy-load
								:src='item.thumb'
							/>
						</view>
						<view class='flex-sub newProduct_fd1_0_c0_c1'>
							<text class='newProduct_fd1_0_c0_c1_c0'>{{item.goods_name}}</text>
							<text class='newProduct_fd1_0_c0_c1_c1'>{{item.sales_sum}}件已定</text>
							<view class='flex flex-wrap align-center newProduct_fd1_0_c0_c1_c2'>
								<view>
									<view class='newProduct_fd1_0_c0_c1_c2_c3'>¥ {{item.original_price}}</view>
									<view style="display: flex;align-items: baseline;">
										<text class='newProduct_fd1_0_c0_c1_c2_c0'>预售价</text>
										<text class='newProduct_fd1_0_c0_c1_c2_c1'>￥</text>
										<text class=' newProduct_fd1_0_c0_c1_c2_c2'>
											<text class=' newProduct_price1_fd1_0_c0_c1_c2_c2'>{{ item.shop_price | frontPrice }}</text>
											<text class=' newProduct_price2_fd1_0_c0_c1_c2_c2'>{{ item.shop_price | laterPrice }}</text>
										</text>
									</view>
								</view>
								<view class='flex flex-wrap align-center justify-center newProduct_fd1_0_c0_c1_c2_c4'>
									<text class='newProduct_fd1_0_c0_c1_c2_c4_c0'>抢</text>
								</view>
							</view>
						</view>
					</view>

					<!--status-->

					<fu-empty v-if="goodsListLoading"></fu-empty>
					<fu-empty-ui v-else-if="goodsListEmpty"></fu-empty-ui>
				</view>
			</view>

		</view>
	</view>
</template>
<script>
	import { goodsModuleMixin } from './goodsModuleMixin'
	export default {
		components: {},
		mixins: [goodsModuleMixin],

		data() {
			return {};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {

		}
	};
</script>
<style
	lang="scss"
	scoped
>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: url(https://www.guochaoxiaoju.com/uploads/mini/691.png) no-repeat;
		background-size: 100% auto;
	}

	.newProduct_flex_0 {
		background: url(https://www.guochaoxiaoju.com/uploads/mini/691.png) no-repeat;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.newProduct_fd0_0_c1_c0 {
		font-size: 40rpx;
		font-weight: 400;
		color: #FFFFFF;
		line-height: 88rpx;
	}

	.newProduct_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: var(--benbenFontColor3);
	}

	.newProduct_fd0_0_c0 {
		width: 120rpx;
	}

	.newProduct_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.newProduct_flex_1 {
		padding: 0rpx 30rpx 0rpx 30rpx;
		margin: 24rpx 0rpx 0rpx 0rpx;
	}

	.newProduct_fd1_0_c0_c1_c2_c4_c0 {
		color: #FFFFFF;
		font-size: 28rpx;
		font-weight: 400;
	}

	.newProduct_fd1_0_c0_c1_c2_c4 {
		background: #AD3823;
		margin: 0rpx 0rpx 0rpx auto;
		border-radius: 32rpx 32rpx 32rpx 32rpx;
		width: 99rpx;
		height: 56rpx;
	}

	.newProduct_fd1_0_c0_c1_c2_c3 {
		color: #999999;
		font-size: 22rpx;
		font-weight: 400;
		text-decoration: line-through;
		margin: 0rpx 0rpx 0rpx 10rpx;
	}

	.newProduct_price2_fd1_0_c0_c1_c2_c2 {
		font-size: 22rpx;
	}

	.newProduct_price1_fd1_0_c0_c1_c2_c2 {
		font-size: 34rpx;
	}

	.newProduct_fd1_0_c0_c1_c2_c2 {
		color: var(--benbenFontColor6);
		font-weight: 600;
	}

	.newProduct_fd1_0_c0_c1_c2_c1 {
		font-size: 24rpx;
		font-weight: 700;
		color: var(--benbenFontColor6);
	}

	.newProduct_fd1_0_c0_c1_c2_c0 {
		color: #AD3823;
		font-size: 24rpx;
		font-weight: 400;
	}

	.newProduct_fd1_0_c0_c1_c2 {
		margin: auto 0rpx 0rpx 0rpx;
	}

	.newProduct_fd1_0_c0_c1_c1 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
	}

	.newProduct_fd1_0_c0_c1_c0 {
		font-size: 28rpx;
		font-weight: 500;
		color: rgba(51, 51, 51, 1);
		margin: 0rpx 0rpx 8rpx 0rpx;
		-webkit-line-clamp: 2;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.newProduct_fd1_0_c0_c1 {
		height: 200rpx;
	}

	.newProduct_fd1_0_c0_c0 {
		width: 200rpx;
		height: 200rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		margin: 0rpx 24rpx 0rpx 0rpx;
	}

	.newProduct_fd1_0_c0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;

		&:last-of-type {
			border: none;
		}
	}

	.newProduct_fd1_0 {
		background: #FFFFFF;
		border-radius: 24rpx 24rpx 24rpx 24rpx;
		width: 690rpx;
		padding: 0 24rpx 0rpx 24rpx;
	}
</style>